﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Gmantis.Uploader
{
    public class UploaderWebService : Uploader
    {
        // Methods
        public UploaderWebService(FilesPerRequest splitter)
            : this(new UploadManagerSettingsWebService(), FilePackagerFactory.Create(splitter))
        {
        }

        public UploaderWebService(UploadManagerSettingsWebService settings)
            : this(settings, new FilePackagerSingleFile())
        {
        }

        public UploaderWebService(Uri address)
            : this(new UploadManagerSettingsWebService(address))
        {
        }

        public UploaderWebService(UploadManagerSettingsWebService settings, FilePackager algorithm)
            : base(settings, algorithm, new UploadManagerWebService())
        {
        }


        // Properties
        public UploadManagerSettingsWebService Settings
        {
            get
            {
                return (base.Settings as UploadManagerSettingsWebService);
            }
        }
    }
}
